import request from '@/utils/request'

// 查询标准工资
export function querySalPostStandardSalaryAll(query) {
  return request({
    url: '/salPostStandardSalaryController/querySalPostStandardSalaryAll',
    method: 'get',
    params: query
  })
}

// 保存
export function saveSalPostStandardSalary(data) {
  return request({
    url: '/salPostStandardSalaryController/saveSalPostStandardSalary',
    method: 'post',
    data
  })
}

// 修改
export function updateSalPostStandardSalary(data) {
  return request({
    url: '/salPostStandardSalaryController/updateSalPostStandardSalary',
    method: 'post',
    data
  })
}

// 删除
export function deleteSalPostStandardSalary(id) {
  return request({
    url: '/salPostStandardSalaryController/deleteSalPostStandardSalary/' + id,
    method: 'delete'
  })
}

// 查询标准工资项目
export function queryStandardBasedataInfo(query) {
  return request({
    url: '/salaryDasedataController/queryStandardBasedataInfo',
    method: 'get',
    params: query
  })
}

// 查询标准工资项目
export function checkRepeat(query) {
  return request({
    url: '/salPostStandardSalaryController/checkRepeat',
    method: 'get',
    params: query
  })
}
